package crmdna.client.group;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

import crmdna.client.group.Group.GroupProp;

@Entity @Cache
public class GroupEntity {
	@Id long groupId;
	@Index
	public String name;
	String displayName;
		
	public GroupProp toProp() {
		GroupProp prop = new GroupProp();
		prop.groupId = groupId;
		prop.name = name;
		prop.displayName = displayName;
		
		return prop;
	}
}
